﻿@using QDT.Core
@using QDT.Core.Assignments
@model ICollection<QDT.Core.Deals.Credit>
@{
    var assign = ViewData["Assignment"] as Assignment;
}
<div class="main">
<table class="form conf_tab" cellpadding=0 cellspacing=0 rel="3">
	<tr>
		<td colspan=2 class="topTd"></td>
	</tr>
	<tr>
		<td style="width:100px;">转让金额:</td>
		<td class="item_input">
		<span>@assign.Money.ToMoney()</span>
		</td>
	</tr>

	<tr>
		<td>筹得款项:</td>
		<td class="item_input">
			@assign.LoadMoney.ToMoney()
		</td>
	</tr>
	
	<tr>
		<td>还需款多少:</td>
		<td class="item_input">
			@assign.NeedMoney.ToMoney()
		</td>
	</tr>

	<tr>
		<td>总债权人数:</td>
		<td class="item_input">
			@Model.Count
		</td>
	</tr>
	<if condition="$loan_list">
	<tr>
		<td>债权列表:</td>
		<td class="item_input">
			<table id="dataTable" class="dataTable" cellpadding="0" cellspacing="0">
				<tr class="row">
				    <th style="width:100px">投资人</th>
				    <th>投资金额</th>
                    <th style="width:180px">投资时间</th>
				    <th>用户组</th>
				</tr>
				@foreach (var item in Model)
                {
				<tr>
					<td>@Html.F().GetUserName(item.UserID)</td>
					<td align="center">@item.Money.ToMoney()</td>
					<td align="center">@item.CreateTime</td>
					<td align="center">@Html.F().GetUserGroupForUser(item.UserID)</td>
				</tr>
                }
			</table>
		</td>
	</tr>
	</if>
	<tr>
		<td colspan=2 class="bottomTd"></td>
	</tr>
</table>

</div>
